load("//devtools/tools:defaults.bzl", "ng_project", "sass_binary")

package(default_visibility = ["//devtools:__subpackages__"])

sass_binary(
    name = "flamegraph-visualizer_styles",
    src = "flamegraph-visualizer.component.scss",
    deps = [
        "//devtools/projects/ng-devtools/src/styles:typography",
    ],
)

ng_project(
    name = "flamegraph-visualizer",
    srcs = [
        "flamegraph-visualizer.component.ts",
    ],
    angular_assets = [
        "flamegraph-visualizer.component.html",
        ":flamegraph-visualizer_styles",
    ],
    deps = [
        "//:node_modules/@angular/core",
        "//:node_modules/ngx-flamegraph",
        "//devtools/projects/ng-devtools/src/lib/application-services:theme",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/profiler/recording-timeline/record-formatter/flamegraph-formatter",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/profiler/recording-timeline/recording-visualizer:recording-visualizer-types",
        "//devtools/projects/ng-devtools/src/lib/devtools-tabs/profiler/recording-timeline/recording-visualizer/profile-formatter",
        "//devtools/projects/protocol",
    ],
)
